package com.potato.model1.contract;

import com.potato.base.base.BaseModel;
import com.potato.model1.api.Api;
import com.potato.model1.bean.CategoryResult;
import com.potato.network.bean.BaseEntity;
import com.potato.network.helper.RetrofitHelper;

import java.util.List;

import io.reactivex.Observable;


public class HomeSubModel extends BaseModel {

    public Observable<BaseEntity<List<CategoryResult>>> getGankData(String category, String pageSize, String page){
        return RetrofitHelper.getInstance().getServer(Api.class).getGankData(category,pageSize,page);
    }
}
